<?php echo $header; ?>
<div id="content">
	<div class="breadcrumb">
		<?php foreach ($breadcrumbs as $breadcrumb) { ?>
		<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
		<?php } ?>
	</div>
<?php if ($success) { ?><div class="success"><?php echo $success; ?></div><?php } ?>
<?php if ($error) { ?><div class="warning"><?php echo $error; ?></div><?php } ?>
<div class="box">
  <div class="heading">
    <h1><img src="view/image/module.png" alt="" /> <?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo $button_save; ?></span></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
  </div>
  <div class="content">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
      <table class="form">
        <!-- start fpp -->
        <tr>
          <td><?php echo $this->language->get('text_fpp_largest'); ?></td>
						<td><input type="checkbox" name="full_product_path_largest" value="1" <?php if($full_product_path_largest) echo 'checked="checked"'; ?> /></td>
        </tr>
        <tr>
          <td><?php echo $this->language->get('text_fpp_bypasscat'); ?></td>
					<td><input type="checkbox" name="full_product_path_bypasscat" value="1" <?php if($full_product_path_bypasscat) echo 'checked="checked"'; ?> /></td>
        </tr>
				<tr>
					<td><?php echo $this->language->get('entry_category'); ?></td>
					<td><div class="scrollbox" style="width:90%;height:350px">
							<?php $class = 'odd'; ?>
							<?php foreach ($categories as $category) { ?>
							<?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
							<div class="<?php echo $class; ?>">
								<?php if (in_array($category['category_id'], $full_product_path_categories)) { ?>
								<input type="checkbox" name="full_product_path_categories[]" value="<?php echo $category['category_id']; ?>" checked="checked" />
								<?php echo $category['name']; ?>
								<?php } else { ?>
								<input type="checkbox" name="full_product_path_categories[]" value="<?php echo $category['category_id']; ?>" />
								<?php echo $category['name']; ?>
								<?php } ?>
							</div>
							<?php } ?>
						</div>
						<a onclick="$(this).parent().find(':checkbox').attr('checked', true);"><?php echo $this->language->get('text_select_all'); ?></a> / <a onclick="$(this).parent().find(':checkbox').attr('checked', false);"><?php echo $this->language->get('text_unselect_all'); ?></a></td>
				</tr>
        <!-- end fpp -->
      </table>
    </form>
</div>